package com.kantboot.user.controller;


import com.kantboot.user.entity.CesUser;
import com.kantboot.user.service.CesUserService;
import com.kantboot.util.RestResult;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import javax.servlet.http.HttpServletRequest;

@RestController
@RequestMapping("/user/ces-user")
public class CesUserController {

    @Resource
    CesUserService cesUserService;

    /** 获取用户 */
    @RequestMapping("/get_user_info")
    public RestResult<CesUser> getUserInfo(HttpServletRequest request){
        CesUser userInfo = cesUserService.getUserInfo(request);
        return RestResult.success(userInfo,"获取用户信息成功");
    }


}

